﻿@model BlackBird.Models.ProductDM
@using BlackBird.Resources

<section class="overlay_window">

    <header>
        <h1>@BBStrings.NewProduct</h1>
    </header>

    @using (Html.BeginForm("NewProduct","Common",FormMethod.Post,new {id = "newproductform"})){
        
            @Html.ValidationSummary(true)

            <div class="editor-label">
                @Html.HiddenFor(model => model.Count)
            </div>

            <div class="editor-label">
               商品名称：
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>


            <div class="editor-label">
                单位：
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Unit)
                @Html.ValidationMessageFor(model => model.Unit)
            </div>

            <p>
                <input type="submit" value="@BBStrings.NewProduct" />
            </p>

    }

</section>

